import { Component } from '@angular/core';
import {NAVS} from './file';
import {Navs} from './list';
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
 
  navs = NAVS;

  shouldShow=true;
  
  number= true;

  checknav: Navs | undefined ;

  changcss(n: Navs){
    this.checknav = n;
    if(this.checknav.active){
      n.active = false;
    
    }else{
      n.active =true;
    }
  }
  onToggle(){
    this.shouldShow = !this.shouldShow;
    return false;
  }

  Toggle(){
    this.number = !this.number;
    return false;
  
  }

  
}
